-
Notifications
You must be signed in to change notification settings - Fork 11
/
setup.py
54 lines (44 loc) · 1.51 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
#!/usr/bin/env python
import setuptools
from setuptools.command.install import install
with open('README.rst', 'r') as o:
long_description = o.read()
class install(install):
def run(self):
super().run()
import py_compile
import hy # for compile hooks
for path in set(self.get_outputs()):
if path.endswith(".hy"):
py_compile.compile(
path,
invalidation_mode=py_compile.PycInvalidationMode.CHECKED_HASH,
)
# both setup_requires and install_requires
# since we need to compile .hy files during setup
requires = [
'hy >= 1'
]
setuptools.setup(
name = 'hyrule',
version = '0.0.0',
setup_requires=['wheel'] + requires,
install_requires=requires,
packages = setuptools.find_packages(exclude = ["tests*"]),
package_data={'': ['*.hy']},
author = "Paul Tagliamonte",
author_email = "[email protected]",
description = 'A utility library for the Hy programming language',
long_description = long_description,
license = 'Expat',
project_urls = dict(
Documentation = 'https://hyrule.readthedocs.io',
Source = 'https://github.com/hylang/hyrule'),
platforms = ['any'],
classifiers = [
"Development Status :: 4 - Beta",
"License :: DFSG approved",
"License :: OSI Approved :: MIT License", # Really "Expat". Ugh.
"Operating System :: OS Independent",
"Programming Language :: Hy"],
cmdclass={'install': install})