Skip to content

Commit

Permalink
fix auto publish on pypi
Browse files Browse the repository at this point in the history
  • Loading branch information
patel-zeel committed Aug 23, 2023
1 parent 1d17947 commit acbe0dc
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 68 deletions.
12 changes: 12 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
[build-system]
requires = [
"setuptools>=50.0",
"setuptools_scm[toml]>=6.0",
"setuptools_scm_git_archive",
"wheel>=0.33",
"numpy>=1.16",
"cython>=0.29",
]

[tool.setuptools_scm]
write_to = "polire/_version.py"
10 changes: 10 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[metadata]
name = polire
author = Zeel B Patel, Deepak Narayanan, Apoorv Agnihotri, Nipun Batra
author_email = patel_zeel@iitgn.ac.in
description = Spatial Interpolation in Python
url = https://github.com/sustainability-lab/polire
license = BSD 3-Clause License
license_file = LICENCE
long_description = file: README.md
long_description_content_type = text/markdown
74 changes: 6 additions & 68 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,73 +1,11 @@
#! /usr/bin/env python
"""A template for scikit-learn compatible packages."""

import codecs

from setuptools import find_packages, setup

DISTNAME = "polire"
DESCRIPTION = "A collection of interpolation methods."
with codecs.open("README.md", encoding="utf-8-sig") as f:
LONG_DESCRIPTION = f.read()
MAINTAINER = "Zeel B Patel, Apoorv Agnihotri, S Deepak Narayanan"
MAINTAINER_EMAIL = "patel_zeel@iitgn.ac.in, apoorv.agnihotri@iitgn.ac.in, deepak.narayanan@iitgn.ac.in"
URL = "https://sustainability-lab.github.io/polire"
LICENSE = "new BSD"
DOWNLOAD_URL = "https://sustainability-lab.github.io/polire"
CLASSIFIERS = [
"Intended Audience :: Science/Research",
"Intended Audience :: Developers",
"License :: OSI Approved",
"Programming Language :: Python",
"Topic :: Software Development",
"Topic :: Scientific/Engineering",
"Operating System :: Microsoft :: Windows",
"Operating System :: POSIX",
"Operating System :: Unix",
"Operating System :: MacOS",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
]
EXTRAS_REQUIRE = {
"tests": ["pytest", "pytest-cov"],
"docs": [
"sphinx",
"sphinx-gallery",
"sphinx_rtd_theme",
"numpydoc",
"matplotlib",
],
}

INSTALL_REQUIRES = [
"matplotlib",
"numpy",
"pandas",
"pykrige",
"scikit_learn",
"scipy",
"seaborn",
"Shapely",
"xgboost",
"GPy",
]
with open("requirements.txt") as f:
requirements = f.read().splitlines()

setup(
name=DISTNAME,
maintainer=MAINTAINER,
maintainer_email=MAINTAINER_EMAIL,
description=DESCRIPTION,
license=LICENSE,
url=URL,
version="0.1.3",
download_url=DOWNLOAD_URL,
long_description=LONG_DESCRIPTION,
long_description_content_type="text/markdown",
zip_safe=False, # the package can run out of an .egg file
classifiers=CLASSIFIERS,
packages=find_packages(),
install_requires=INSTALL_REQUIRES,
extras_require=EXTRAS_REQUIRE,
packages=find_packages(exclude=["docs"]),
python_requires=">=3.8",
install_requires=requirements,
include_package_data=True,
)

0 comments on commit acbe0dc

Please sign in to comment.