Skip to content
Snippets Groups Projects
Commit 256a801a authored by Veronique Legrand's avatar Veronique Legrand
Browse files

got rid of the use of deprecated setup function; did a pyproject.toml instead

parent 56313c79
No related branches found
No related tags found
1 merge request!108Fixing py 3.12
......@@ -128,7 +128,7 @@ build-backend:
-v $(pwd)/.eggs:/code/.eggs
-v $(pwd)/jass.egg-info:/code/jass.egg-info
"$CI_REGISTRY_IMAGE/$CI_COMMIT_REF_SLUG/${PATH_TAG}:$CI_COMMIT_SHA"
python setup.py test
python -m unittest
build-client-dev:
......
[build-system]
requires = ["setuptools"]
build-backend = "setuptools.build_meta"
[project]
name = "jass"
authors = [
{name="Hervé Ménager", email='hmenager@pasteur.fr'},
{name="Pierre Lechat", email='pierre.lechat@pasteur.fr'},
{name="Carla Lasry", email='carla.lasry@pasteur.fr'},
{name="Vincent Guillemot", email='vincent.guillemot@pasteur.fr'},
{name="Hugues Aschard", email='hugues.aschard@pasteur.fr'},
{name="Hanna Julienne", email='hanna.julienne@pasteur.fr'}
]
description="JASS allows for single SNP joint analysis of multiple GWAS summary statistics"
readme ="README.md"
dynamic = ["dependencies"]
version = "2.2"
requires-python = ">=3.6"
classifiers = [
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
]
[tool.setuptools.dynamic]
dependencies = {file = ["requirements.txt"]}
[tool.setuptools.packages.find]
include = ["jass*"]
[tool.setuptools.package-data]
jass = ["swagger/swagger.yaml",
"data/*.tsv"]
# include-package-data = true
[project.scripts]
jass="jass.__main__:main"
[project.urls]
Homepage = "https://gitlab.pasteur.fr/statistical-genetics/jass"
[project.license]
text = "MIT"
\ No newline at end of file
[aliases]
test=pytest
......@@ -2,52 +2,22 @@
import os
import pathlib
import pkg_resources
from setuptools import setup, find_packages
NAME = "jass"
VERSION = "2.2"
from setuptools import setup
SETUP_DIR = os.path.dirname(__file__)
README = os.path.join(SETUP_DIR, 'README.md')
readme = open(README).read()
with pathlib.Path('requirements.txt').open() as requirements_txt:
REQUIRES = [
str(requirement)
for requirement
in pkg_resources.parse_requirements(requirements_txt)
]
setup(
name=NAME,
version=VERSION,
description="JASS allows for single SNP joint analysis of multiple GWAS summary statistics",
author='Hervé Ménager and Pierre Lechat and Carla Lasry and Vincent Guillemot and Hugues Aschard and Hanna Julienne',
author_email="hmenager@pasteur.fr, pierre.lechat@pasteur.fr, carla.lasry@pasteur.fr, vincent.guillemot@pasteur.fr, hugues.aschard@pasteur.fr, hanna.julienne@pasteur.fr",
url="https://gitlab.pasteur.fr/statistical-genetics/jass",
packages=find_packages(),
install_requires=REQUIRES,
license="MIT",
keywords=["GWAS", "Data analysis", "summary statistics"],
package_data={'jass': ['swagger/swagger.yaml', "data/*.tsv"]},
include_package_data=True,
long_description=readme,
long_description_content_type="text/markdown",
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
],
python_requires='>=3.6',
setup_requires=[
'pytest-runner',
'Flask-Testing'
],
entry_points={
'console_scripts': [
'jass=jass.__main__:main',
]
}
)
# NAME = "jass"
# VERSION = "2.2"
#
# SETUP_DIR = os.path.dirname(__file__)
# README = os.path.join(SETUP_DIR, 'README.md')
# readme = open(README).read()
#
# with pathlib.Path('requirements.txt').open() as requirements_txt:
# REQUIRES = [
# str(requirement)
# for requirement
# in pkg_resources.parse_requirements(requirements_txt)
# ]
if __name__ == "__main__":
setup()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment