Skip to content

Commit

Permalink
placeholder
Browse files Browse the repository at this point in the history
  • Loading branch information
joocer committed Mar 28, 2024
1 parent eb68a18 commit 67c912c
Show file tree
Hide file tree
Showing 5 changed files with 68 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: release

on:
push:
branches: [ main ]

jobs:

build:
runs-on: ubuntu-latest
environment: release
permissions:
# IMPORTANT: this permission is mandatory for trusted publishing
id-token: write

steps:
- uses: actions/checkout@v3

- uses: actions/setup-python@v4
with:
python-version: "3.x"

- name: deps
run: python -m pip install -U build

- name: build
run: python -m build

- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Anson
6 changes: 6 additions & 0 deletions anson/version.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Store the version here so:
# 1) we don't load dependencies by storing it in __init__.py
# 2) we can import it in setup.py for the same reason
__version__ = "0.0.0a0"

# nodoc - don't add to the documentation wiki
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
lz4
30 changes: 30 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
from setuptools import find_packages
from setuptools import setup

with open("anson/version.py", "r") as v:
vers = v.read()
exec(vers) # nosec

with open("README.md", "r") as rm:
long_description = rm.read()

try:
with open("requirements.txt", "r") as f:
required = f.read().splitlines()
except:
with open("mabel.egg-info/requires.txt", "r") as f:
required = f.read().splitlines()

setup(
name="anson",
version=__version__,
description="Columnar Data Format",
long_description=long_description,
long_description_content_type="text/markdown",
maintainer="Joocer",
author="joocer",
author_email="[email protected]",
packages=find_packages(include=["anson", "anson.*"]),
url="https://github.com/mabel-dev/anson/",
install_requires=required,
)

0 comments on commit 67c912c

Please sign in to comment.