From 25cb83089dd9947344ee649efd0ea5179af7aa66 Mon Sep 17 00:00:00 2001 From: Jan Petykiewicz Date: Sun, 4 Aug 2019 03:06:32 -0700 Subject: [PATCH] modernize setup.py --- fdfd_tools/__init__.py | 1 + setup.py | 24 +++++++++++++++++++++--- 2 files changed, 22 insertions(+), 3 deletions(-) diff --git a/fdfd_tools/__init__.py b/fdfd_tools/__init__.py index a4efa89..ecf4e15 100644 --- a/fdfd_tools/__init__.py +++ b/fdfd_tools/__init__.py @@ -23,3 +23,4 @@ from .vectorization import vec, unvec, field_t, vfield_t from .grid import dx_lists_t __author__ = 'Jan Petykiewicz' +version = '0.5' diff --git a/setup.py b/setup.py index ef1df08..2a64b37 100644 --- a/setup.py +++ b/setup.py @@ -1,18 +1,36 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 from setuptools import setup, find_packages +import fdfd_tools + +with open('README.md', 'r') as f: + long_description = f.read() setup(name='fdfd_tools', - version='0.4', + version=fdfd_tools.version, description='FDFD Electromagnetic simulation tools', + long_description=long_description, + long_description_content_type='text/markdown', author='Jan Petykiewicz', author_email='anewusername@gmail.com', - url='https://mpxd.net/gogs/jan/fdfd_tools', + url='https://mpxd.net/code/jan/fdfd_tools', packages=find_packages(), install_requires=[ 'numpy', 'scipy', ], extras_require={ + 'test': [ + 'pytest', + 'dataclasses', + ], }, + classifiers=[ + 'Programming Language :: Python :: 3', + 'Development Status :: 4 - Beta', + 'Intended Audience :: Developers', + 'Intended Audience :: Science/Research', + 'License :: OSI Approved :: GNU Affero General Public License v3', + 'Topic :: Scientific/Engineering :: Physics', + ], )