|
1 | | -from setuptools import setup, find_packages |
2 | | -from cstruct import __version__ |
| 1 | +#!/usr/bin/env python |
| 2 | +import setuptools |
3 | 3 |
|
4 | | - |
5 | | -def readme(): |
6 | | - with open('README.md') as f: |
7 | | - return f.read() |
8 | | - |
9 | | - |
10 | | -setup( |
11 | | - name='cstruct', |
12 | | - version=__version__, |
13 | | - description="C-style structs for Python", |
14 | | - long_description="""\ |
15 | | -Convert C struct definitions into Python classes with methods for serializing/deserializing.""", |
16 | | - classifiers=[ |
17 | | - 'Operating System :: OS Independent', |
18 | | - 'Programming Language :: Python', |
19 | | - 'Topic :: Software Development :: Libraries :: Python Modules', |
20 | | - 'Programming Language :: Python :: 3.6', |
21 | | - 'Programming Language :: Python :: 3.7', |
22 | | - 'Programming Language :: Python :: 3.8', |
23 | | - 'Programming Language :: Python :: 3.9', |
24 | | - 'Programming Language :: Python :: 3.10', |
25 | | - 'Programming Language :: Python :: 3.11', |
26 | | - ], |
27 | | - keywords='struct', |
28 | | - author='Andrea Bonomi', |
29 | | - author_email='andrea.bonomi@gmail.com', |
30 | | - url='http://github.com/andreax79/python-cstruct', |
31 | | - license='MIT', |
32 | | - packages=find_packages(exclude=['ez_setup', 'examples', 'tests']), |
33 | | - include_package_data=True, |
34 | | - zip_safe=True, |
35 | | - install_requires=[ |
36 | | - # -*- Extra requirements: -*- |
37 | | - ], |
38 | | - entry_points=""" |
39 | | - # -*- Entry points: -*- |
40 | | - """, |
41 | | - test_suite='tests', |
42 | | - tests_require=['pytest'], |
43 | | -) |
| 4 | +if __name__ == "__main__": |
| 5 | + setuptools.setup() |
0 commit comments