Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion ahkab/__version__.py

This file was deleted.

7 changes: 7 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[build-system]
requires = ["setuptools>=42", "wheel", "setuptools_scm[toml]>=3.4.3"]
build-backend = "setuptools.build_meta"

[tool.setuptools_scm]
write_to = "ahkab/__version__.py"
write_to_template = "__version__ = \"{version}\"\n"
51 changes: 51 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
[metadata]
name = ahkab
version = 0.18
author = Giuseppe Venturini and others
author_email = [email protected]
license = GPL
url = http://ahkab.github.io/ahkab/
description = a SPICE-like electronic circuit simulator
long_description = file: pypi_description.rst, CHANGES.rst
long_description_content_type = text/x-rst
keywords =
electronic
circuit
simulator
numeric
symbolic

classifiers =
Development Status :: 4 - Beta
Intended Audience :: Education
Intended Audience :: Science/Research
License :: OSI Approved :: GNU General Public License (GPL)
Operating System :: POSIX
Operating System :: POSIX :: Linux
Operating System :: Microsoft :: Windows
Operating System :: MacOS
Natural Language :: English
Programming Language :: Python :: 2
Programming Language :: Python :: 2.7
Programming Language :: Python :: 3
Programming Language :: Python :: 3.4

[options]
packages = find:
zip_safe = False
install_requires =
numpy>1.7.0
scipy>=0.14.0
sympy>=0.7.6
tabulate>=0.7.3
include_package_data = True
setup_requires = setuptools>=42; wheel; setuptools_scm[toml]>=3.4.3

[options.extras_require]
PLOT = matplotlib>=1.1.1

[options.package_data]
ahkab = test_data/*.dat

[options.entry_points]
console_scripts = ahkab = ahkab.__main__:_cli
47 changes: 2 additions & 45 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,48 +3,5 @@
import re
from setuptools import setup, find_packages

with open('ahkab/__version__.py') as version_file:
__version__ = re.findall("__version__ = '([^']*)'", version_file.read())[0]

def read(fname):
try:
with open(os.path.join(os.path.dirname(__file__), fname)) as fp:
return fp.read()
except IOError:
return ""

setup(
name='ahkab',
version=__version__,
packages=find_packages(),
package_data={'ahkab': ['test_data/*.dat']},
install_requires=['numpy>1.7.0', 'scipy>=0.14.0', 'sympy>=0.7.6',
'tabulate>=0.7.3'],
extras_require = {'PLOT':['matplotlib>=1.1.1']},
zip_safe=False,
include_package_data=True,
author="Giuseppe Venturini and others",
author_email="[email protected]",
description="a SPICE-like electronic circuit simulator",
long_description=''.join([read('pypi_description.rst'), '\n\n',
read('CHANGES.rst')]),
entry_points = {'console_scripts': ['ahkab = ahkab.__main__:_cli', ], },
license="GPL",
keywords="electronic circuit simulator numeric symbolic",
url='http://ahkab.github.io/ahkab/',
classifiers=[
"Development Status :: 4 - Beta",
"Intended Audience :: Education",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: GNU General Public License (GPL)",
"Operating System :: POSIX",
"Operating System :: POSIX :: Linux",
"Operating System :: Microsoft :: Windows",
"Operating System :: MacOS",
"Natural Language :: English",
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.4"]
)

if __name__ == "__main__":
setup()