diff --git a/.github/workflows/pypi.yml b/.github/workflows/pypi.yml new file mode 100644 index 00000000..15a44f9e --- /dev/null +++ b/.github/workflows/pypi.yml @@ -0,0 +1,40 @@ +name: Pypi + +on: + release: + types: [published] + +jobs: + pypi-release: + name: Pypi release + runs-on: ubuntu-latest + environment: + name: pypi + url: https://pypi.org/p/djang-napse + permissions: + id-token: write + + steps: + - uses: actions/checkout@v3 + + - name: Setup python + uses: actions/setup-python@v4 + with: + python-version: 3.11 + + - name: Install pypa/build + run: >- + python3 -m + pip install + build + --user + - name: Build a binary wheel and a source tarball + run: >- + python3 -m + build + --sdist + --wheel + --outdir dist/ + + - name: Publish package distributions to PyPI + uses: pypa/gh-action-pypi-publish@release/v1 \ No newline at end of file diff --git a/README.md b/README.md index 42305cab..35839647 100644 --- a/README.md +++ b/README.md @@ -21,7 +21,7 @@
## django-napse -... +.... ## Useful commands Unless otherwise specified, all commands are to be run at the root folder of the project. diff --git a/setup.cfg b/setup.cfg index 224a7795..d03a2880 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,2 +1,3 @@ [metadata] -description-file = README.md \ No newline at end of file +description_file = README.md +long_description_content_type = text/markdown \ No newline at end of file diff --git a/setup.py b/setup.py index a8b97f67..85bc4ddf 100644 --- a/setup.py +++ b/setup.py @@ -1,17 +1,20 @@ from distutils.core import setup +# from setuptools import setup + setup( name="django-napse", # How you named your package folder (MyLib) - packages=["django-napse"], # Chose the same as "name" + packages=["django_napse"], # Chose the same as "name" version="1.4.0", # Start with a small number and increase it with every change you make license="MIT", # Chose a license from here: https://help.github.com/articles/licensing-a-repository description="The heart and brains of the Napse Invest platform.", # Give a short description about your library + long_description="The heart and brains of the Napse Invest platform.", author="Napse Invest", # Type in your name author_email="napse.invest@gmail.com", # Type in your E-Mail url="https://github.com/napse-invest/django-napse", # Provide either the link to your github or to your website - download_url="https://github.com/napse-invest/django-napse/archive/v_01.tar.gz", # I explain this later on + download_url="https://github.com/napse-invest/django-napse/archive/refs/tags/v1.4.0.tar.gz", keywords=["Investing", "Django", "Trading"], # Keywords that define your package best - install_requires=[ # I get to this in a second + install_requires=[ "django", "django-environ", "django-celery-beat",