Skip to content

Commit f42ff2c

Browse files
committed
Improved setup.py for Pypi.
1 parent 4559a0c commit f42ff2c

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

setup.py

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,24 +26,26 @@ def platform_detection(install_binaries=True):
2626
return {bin_dir: ["*"]}
2727

2828

29+
# Set some variables (PKGBUILD inspired)
2930
DATA_FILES = platform_detection()
31+
VERSION = "0.1.7"
32+
URL = "https://github.com/StuntsPT/Structure_threader"
3033

3134
print(DATA_FILES)
3235

3336
setup(
3437
name="structure_threader",
35-
version="0.1.7",
38+
version=VERSION,
3639
packages=["structure_threader",
3740
"structure_threader.evanno",
3841
"structure_threader.plotter",
3942
"structure_threader.sanity_checks"],
40-
install_requires=[
41-
"matplotlib",
42-
"numpy",
43-
],
43+
install_requires=["matplotlib",
44+
"numpy",],
4445
description=("A program to parallelize runs of 'Structure' and "
4546
"'fastStructure'."),
46-
url="https://github.com/StuntsPT/Structure_threader",
47+
url=URL,
48+
download_url="{0}/archive/v{1}.tar.gz".format(URL, VERSION),
4749
author="Francisco Pina-Martins",
4850
author_email="[email protected]",
4951
license="GPL3",

0 commit comments

Comments
 (0)