forked from sympy/sympy
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
87 changed files
with
3,660 additions
and
547 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -248,3 +248,4 @@ Nitin Chaudhary <[email protected]> Nitin <[email protected]> | |
Alex Argunov <[email protected]> alex argunov <[email protected]> | ||
Abhishek Garg <[email protected]> abhishek garg <[email protected]> | ||
Gaurav Dhingra <[email protected]> Gaurav Dhingra <[email protected]> | ||
Krit Karan <[email protected]> Krit Karan <[email protected]> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -512,3 +512,5 @@ Nathan Musoke <[email protected]> | |
Abhishek Garg <[email protected]> | ||
Dana Jacobsen <[email protected]> | ||
Vasiliy Dommes <[email protected]> | ||
Krit Karan <[email protected]> | ||
Rahul Dandwate <[email protected]> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
""" | ||
Execute like this: | ||
$ python bin/generate_module_list.py | ||
modules = [ | ||
'sympy.assumptions', | ||
'sympy.assumptions.handlers', | ||
'sympy.benchmarks', | ||
'sympy.calculus', | ||
'sympy.categories', | ||
'sympy.codegen', | ||
'sympy.combinatorics', | ||
'sympy.concrete', | ||
'sympy.core', | ||
'sympy.core.benchmarks', | ||
'sympy.crypto', | ||
'sympy.deprecated', | ||
'sympy.diffgeom', | ||
'sympy.external', | ||
'sympy.functions', | ||
'sympy.functions.combinatorial', | ||
'sympy.functions.elementary', | ||
'sympy.functions.elementary.benchmarks', | ||
... | ||
] | ||
""" | ||
|
||
from __future__ import print_function | ||
|
||
from glob import glob | ||
|
||
|
||
def get_paths(level=15): | ||
""" | ||
Generates a set of paths for modules searching. | ||
Examples | ||
======== | ||
>>> get_paths(2) | ||
['sympy/__init__.py', 'sympy/*/__init__.py', 'sympy/*/*/__init__.py'] | ||
>>> get_paths(6) | ||
['sympy/__init__.py', 'sympy/*/__init__.py', 'sympy/*/*/__init__.py', | ||
'sympy/*/*/*/__init__.py', 'sympy/*/*/*/*/__init__.py', | ||
'sympy/*/*/*/*/*/__init__.py', 'sympy/*/*/*/*/*/*/__init__.py'] | ||
""" | ||
wildcards = ["/"] | ||
for i in range(level): | ||
wildcards.append(wildcards[-1] + "*/") | ||
p = ["sympy" + x + "__init__.py" for x in wildcards] | ||
return p | ||
|
||
def generate_module_list(): | ||
g = [] | ||
for x in get_paths(): | ||
g.extend(glob(x)) | ||
g = [".".join(x.split("/")[:-1]) for x in g] | ||
g = [i for i in g if not i.endswith('.tests')] | ||
g.remove('sympy') | ||
g = list(set(g)) | ||
g.sort() | ||
return g | ||
|
||
if __name__ == '__main__': | ||
g = generate_module_list() | ||
print("modules = [") | ||
for x in g: | ||
print(" '%s'," % x) | ||
print("]") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
""" | ||
Test that the installed modules in setup.py are up-to-date. | ||
If this test fails, run | ||
python bin/generate_test_list.py | ||
and | ||
python bin/generate_module_list.py | ||
to generate the up-to-date test and modules list to put in setup.py. | ||
""" | ||
import generate_test_list | ||
import generate_module_list | ||
|
||
from get_sympy import path_hack | ||
path_hack() | ||
|
||
import setup | ||
|
||
module_list = generate_module_list.generate_module_list() | ||
test_list = generate_test_list.generate_test_list() | ||
|
||
assert setup.modules == module_list, set(setup.modules).symmetric_difference(set(module_list)) | ||
assert setup.tests == test_list, set(setup.tests).symmetric_difference(set(test_list)) | ||
print("setup.py modules and tests are OK") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -63,7 +63,7 @@ | |
sys.exit(-1) | ||
|
||
# Check that this list is uptodate against the result of the command: | ||
# for i in `find sympy -name __init__.py | rev | cut -f 2- -d '/' | rev | egrep -v "^sympy$" | egrep -v "tests$" `; do echo "'${i//\//.}',"; done | sort | ||
# python bin/generate_module_list.py | ||
modules = [ | ||
'sympy.assumptions', | ||
'sympy.assumptions.handlers', | ||
|
@@ -254,7 +254,7 @@ def run(self): | |
benchmarking.main(['sympy']) | ||
|
||
# Check that this list is uptodate against the result of the command: | ||
# $ python bin/generate_test_list.py | ||
# python bin/generate_test_list.py | ||
tests = [ | ||
'sympy.assumptions.tests', | ||
'sympy.calculus.tests', | ||
|
@@ -322,42 +322,43 @@ def run(self): | |
with open(os.path.join(dir_setup, 'sympy', '__init__.py')) as f: | ||
long_description = f.read().split('"""')[1] | ||
|
||
setup(name='sympy', | ||
version=__version__, | ||
description='Computer algebra system (CAS) in Python', | ||
long_description=long_description, | ||
author='SymPy development team', | ||
author_email='[email protected]', | ||
license='BSD', | ||
keywords="Math CAS", | ||
url='http://sympy.org', | ||
packages=['sympy'] + modules + tests, | ||
scripts=['bin/isympy'], | ||
ext_modules=[], | ||
package_data={ | ||
'sympy.utilities.mathml': ['data/*.xsl'], | ||
'sympy.logic.benchmarks': ['input/*.cnf'], | ||
}, | ||
data_files=[('share/man/man1', ['doc/man/isympy.1'])], | ||
cmdclass={'test': test_sympy, | ||
'bench': run_benchmarks, | ||
'clean': clean, | ||
'audit': audit}, | ||
classifiers=[ | ||
'License :: OSI Approved :: BSD License', | ||
'Operating System :: OS Independent', | ||
'Programming Language :: Python', | ||
'Topic :: Scientific/Engineering', | ||
'Topic :: Scientific/Engineering :: Mathematics', | ||
'Topic :: Scientific/Engineering :: Physics', | ||
'Programming Language :: Python :: 2', | ||
'Programming Language :: Python :: 2.6', | ||
'Programming Language :: Python :: 2.7', | ||
'Programming Language :: Python :: 3', | ||
'Programming Language :: Python :: 3.2', | ||
'Programming Language :: Python :: 3.3', | ||
'Programming Language :: Python :: 3.4', | ||
'Programming Language :: Python :: 3.5', | ||
], | ||
install_requires=['mpmath>=%s' % mpmath_version] | ||
) | ||
if __name__ == '__main__': | ||
setup(name='sympy', | ||
version=__version__, | ||
description='Computer algebra system (CAS) in Python', | ||
long_description=long_description, | ||
author='SymPy development team', | ||
author_email='[email protected]', | ||
license='BSD', | ||
keywords="Math CAS", | ||
url='http://sympy.org', | ||
packages=['sympy'] + modules + tests, | ||
scripts=['bin/isympy'], | ||
ext_modules=[], | ||
package_data={ | ||
'sympy.utilities.mathml': ['data/*.xsl'], | ||
'sympy.logic.benchmarks': ['input/*.cnf'], | ||
}, | ||
data_files=[('share/man/man1', ['doc/man/isympy.1'])], | ||
cmdclass={'test': test_sympy, | ||
'bench': run_benchmarks, | ||
'clean': clean, | ||
'audit': audit}, | ||
classifiers=[ | ||
'License :: OSI Approved :: BSD License', | ||
'Operating System :: OS Independent', | ||
'Programming Language :: Python', | ||
'Topic :: Scientific/Engineering', | ||
'Topic :: Scientific/Engineering :: Mathematics', | ||
'Topic :: Scientific/Engineering :: Physics', | ||
'Programming Language :: Python :: 2', | ||
'Programming Language :: Python :: 2.6', | ||
'Programming Language :: Python :: 2.7', | ||
'Programming Language :: Python :: 3', | ||
'Programming Language :: Python :: 3.2', | ||
'Programming Language :: Python :: 3.3', | ||
'Programming Language :: Python :: 3.4', | ||
'Programming Language :: Python :: 3.5', | ||
], | ||
install_requires=['mpmath>=%s' % mpmath_version] | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.