Skip to content

Commit 75eb740

Browse files
Merge pull request #70 from hyperion-ml/lachesis
check install pypi
2 parents 6bf237d + a724b12 commit 75eb740

File tree

5 files changed

+59
-16
lines changed

5 files changed

+59
-16
lines changed

.gitignore

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ tests/data_out/*
1414

1515

1616
#temp/*
17-
#dist/*
18-
#build/*
17+
dist/*
18+
build/*
1919
#keras/datasets/data/*
2020
#keras/datasets/temp/*
2121
#docs/site/*
@@ -43,9 +43,18 @@ rirs_noises.zip
4343
RIRS_NOISES
4444
egs/*/*/exp
4545
egs/*/*/data
46-
kk
4746

48-
egs/voxceleb/*/*.o*
49-
egs/voxceleb/*/*.e*
50-
egs/voxceleb/*/scores
51-
egs/voxceleb/*/q
47+
48+
# some dummy file names
49+
kk
50+
qq
51+
1.sh
52+
2.sh
53+
3.sh
54+
4.sh
55+
5.sh
56+
10.sh
57+
11.sh
58+
30.sh
59+
30.*.sh
60+
40.sh

requirements.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,5 @@ jsonargparse>=3.5.0
1717
wandb>=0.10.30
1818
librosa>=0.8.1
1919
black
20+
twine
21+
wheel

setup.py

Lines changed: 31 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,34 +16,56 @@
1616
#
1717
import setuptools
1818

19-
with open('apps.txt') as f:
19+
with open("apps.txt") as f:
2020
apps = f.read().splitlines()
2121

22-
apps = ['hyperion/bin/' + app for app in apps]
22+
apps = ["hyperion/bin/" + app for app in apps]
2323

24-
with open('requirements.txt') as f:
24+
with open("requirements.txt") as f:
2525
requirements = f.read().splitlines()
2626

2727
with open("README.md", "r") as fh:
2828
long_description = fh.read()
2929

3030
setuptools.setup(
31-
name="hyperion", # Replace with your own username
32-
version="0.1.1",
31+
# This name will decide what users will type when they install your package.
32+
name="hyperion-ml",
33+
# The version of your project.
34+
# Usually, it would be in the form of:
35+
# major.minor.patch
36+
# eg: 1.0.0, 1.0.1, 3.0.2, 5.0-beta, etc.
37+
# You CANNOT upload two versions of your package with the same version number
38+
version="0.1.0rc1",
3339
author="Jesus Villalba",
3440
author_email="jesus.antonio.villalba@gmail.com",
41+
# The description that will be shown on PyPI.
42+
# Keep it short and concise
43+
# This field is OPTIONAL
3544
description="Toolkit for speaker recognition",
45+
# The content that will be shown on your project page.
46+
# In this case, we're displaying whatever is there in our README.md file
47+
# This field is OPTIONAL
3648
long_description=long_description,
3749
long_description_content_type="text/markdown",
50+
keywords="speaker recognition, adversarial attacks, NIST SRE, x-vectors",
3851
url="https://github.com/hyperion-ml/hyperion",
39-
packages=setuptools.find_packages(),
52+
# The packages that constitute your project.
53+
# For my project, I have only one - "pydash".
54+
# Either you could write the name of the package, or
55+
# alternatively use setuptools.findpackages()
56+
#
57+
# If you only have one file, instead of a package,
58+
# you can instead use the py_modules field instead.
59+
# EITHER py_modules OR packages should be present.
60+
packages=setuptools.find_packages(exclude="tests"),
4061
classifiers=[
4162
"Programming Language :: Python :: 3",
4263
"Programming Language :: Python :: 3.7",
4364
"Programming Language :: Python :: 3.8",
44-
"License :: OSI Approved :: Apache 2.0",
65+
"License :: OSI Approved :: Apache Software License",
4566
"Operating System :: OS Independent",
4667
],
47-
python_requires='>=3.7',
68+
python_requires=">=3.7",
4869
install_requires=requirements,
49-
scripts=apps)
70+
scripts=apps,
71+
)

upload2pypi.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/bin/bash
2+
3+
rm -rf build dist
4+
python3 setup.py sdist bdist_wheel
5+
python3 -m twine upload dist/*

upload2testpypi.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/bin/bash
2+
3+
rm -rf build dist
4+
python3 setup.py sdist bdist_wheel
5+
python3 -m twine upload -r testpypi dist/*

0 commit comments

Comments
 (0)