Skip to content

Commit

Permalink
fix setup.py for pypi
Browse files Browse the repository at this point in the history
 - rst not supported and DESCRIPTION.rst is outdated
 - git dependency not supported, hence remove them
  • Loading branch information
boeddeker committed Jun 18, 2024
1 parent 0da8c58 commit 1237001
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,10 @@
here = path.abspath(path.dirname(__file__))

# Get the long description from the relevant file
with open(path.join(here, 'DESCRIPTION.rst'), encoding='utf-8') as f:
with open(path.join(here, 'README.md'), encoding='utf-8') as f:
long_description = f.read()


# testing dependencies
test = [
'pytest',
Expand All @@ -46,6 +47,17 @@
'codecarbon',
]

if sys.argv != ['setup.py', 'sdist']:
# Remove git dependencies for sdist, because they are not supported on
# pypi.
# Can't have direct dependency: pb_bss@ git+http://github.com/fgnt/pb_bss ; extra == "test".
# https://packaging.python.org/specifications/core-metadata for more information.
test = [
d
for d in test
if '@ git+http://' not in d
]

setup(
name='padertorch',

Expand Down

0 comments on commit 1237001

Please sign in to comment.