|
28 | 28 | python_25 = (major > 2 or (major == 2 and minor >= 5)) |
29 | 29 | if not python_25: |
30 | 30 | raise RuntimeError("Python 2.5 or newer is required") |
31 | | -python_3x = (major >= 3) |
32 | | -if python_3x: |
33 | | - package_name = 'phonenumbers3k' |
34 | | - dev_status = 'Development Status :: 3 - Alpha' |
35 | | -else: |
36 | | - package_name = 'phonenumbers' |
37 | | - dev_status = 'Development Status :: 4 - Beta' |
38 | 31 |
|
39 | 32 | # Add ./python/ subdirectory to path |
40 | 33 | sys.path.append('python') |
41 | 34 |
|
42 | 35 | # Discover version of phonenumbers package |
43 | 36 | from phonenumbers import __version__ |
44 | 37 |
|
45 | | -distutils.core.setup(name=package_name, |
| 38 | +distutils.core.setup(name='phonenumbers', |
46 | 39 | version=__version__, |
47 | 40 | description="Python version of Google's common library for parsing, formatting, storing and validating international phone numbers.", |
48 | 41 | author='David Drysdale', |
|
54 | 47 | package_dir={'': 'python'}, |
55 | 48 | test_suite="tests", |
56 | 49 | platforms='Posix; MacOS X; Windows', |
57 | | - classifiers=[dev_status, |
| 50 | + classifiers=['Development Status :: 4 - Beta', |
58 | 51 | 'Intended Audience :: Developers', |
59 | 52 | 'License :: OSI Approved :: Apache Software License', |
60 | 53 | 'Operating System :: OS Independent', |
|
0 commit comments