Skip to content

Commit

Permalink
Merge pull request #112 from napse-invest/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
Xenepix authored Aug 16, 2023
2 parents 7d7c4fd + f797f88 commit ae892b5
Show file tree
Hide file tree
Showing 4 changed files with 49 additions and 5 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/pypi.yml
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<br/>

## django-napse
...
....

## Useful commands
Unless otherwise specified, all commands are to be run at the root folder of the project.
Expand Down
3 changes: 2 additions & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
[metadata]
description-file = README.md
description_file = README.md
long_description_content_type = text/markdown
9 changes: 6 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
@@ -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="[email protected]", # 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",
Expand Down

0 comments on commit ae892b5

Please sign in to comment.