-
Notifications
You must be signed in to change notification settings - Fork 5
/
setup.py
62 lines (51 loc) · 1.72 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
"""
Setup script for pyinstaller-versionfile.
"""
import os
import setuptools
with open("README.md", "r") as fh:
long_description = fh.read()
with open("VERSION.txt", "r") as fh:
version = fh.read().strip()
with open("requirements.txt", "r") as fh:
requirements = fh.readlines()
with open("CHANGELOG.md", "r") as fh:
changelog = fh.read()
def package_files(directory):
paths = []
for (path, _, filenames) in os.walk(directory):
for filename in filenames:
paths.append(os.path.join('..', path, filename))
return paths
extra_files = package_files('./src/pyinstaller_versionfile')
setuptools.setup(
name="pyinstaller_versionfile",
version=version,
author="Andreas Finkler",
author_email="[email protected]",
description="""
Create a windows version-file from metadata stored in a simple
self-written YAML file or obtained from an installed distribution.
""",
long_description=long_description + "\n\n" + changelog,
long_description_content_type="text/markdown",
url="https://github.com/DudeNr33/pyinstaller-versionfile",
packages=setuptools.find_packages(where="src"),
package_dir={'': 'src'},
include_package_data=True,
entry_points={
'console_scripts': [
'create-version-file = pyinstaller_versionfile.__main__:main'
]
},
install_requires=requirements,
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: Microsoft :: Windows",
"Topic :: Software Development",
"Topic :: Software Development :: Build Tools",
"Environment :: Console",
],
python_requires='>=3.9'
)