Skip to content

Commit

Permalink
build configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
mfouesneau committed Nov 22, 2021
1 parent 0d00ca8 commit d2f6599
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 4 deletions.
3 changes: 1 addition & 2 deletions pyphot/__init__.py
Expand Up @@ -11,5 +11,4 @@
magToFlux)
from .vega import Vega
from .sun import Sun

__VERSION__ = "1.4.2"
from .version import __VERSION__
1 change: 1 addition & 0 deletions pyphot/version.py
@@ -0,0 +1 @@
__VERSION__ = "1.4.2"
13 changes: 13 additions & 0 deletions pyproject.toml
@@ -0,0 +1,13 @@
[build-system]

requires = ["setuptools",
"setuptools_scm",
"wheel",
"cython",
"numpy",
"scipy",
"matplotlib",
"astropy",
"tables",
"pandas",
"extension-helpers"]
10 changes: 8 additions & 2 deletions setup.py
@@ -1,12 +1,18 @@
from setuptools import setup, find_packages
from pyphot import __VERSION__
from distutils.util import convert_path

main_ns = {}
ver_path = convert_path('pyphot/version.py')
with open(ver_path) as ver_file:
exec(ver_file.read(), main_ns)


def readme():
with open('README.rst') as f:
return f.read()

setup(name = "pyphot",
version = __VERSION__,
version = main_ns['__VERSION__'],
description = "A tool for computing photometry from spectra",
long_description = readme(),
author = "Morgan Fouesneau",
Expand Down

0 comments on commit d2f6599

Please sign in to comment.