Skip to content

Commit 26aba7e

Browse files
committed
Minor improvements prior to release
1 parent 287c2cc commit 26aba7e

14 files changed

+66
-14
lines changed

AUTHORS

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Pint is written and maintained by an awesome community:
1+
pint-pandas is written and maintained by an awesome community:
22

33
Andrew Savage <[email protected]>
44
Hernan E. Grecco <[email protected]>

BADGES.rst

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
.. image:: https://img.shields.io/pypi/v/pint-pandas.svg
2+
:target: https://pypi.python.org/pypi/pint-pandas
3+
:alt: Latest Version
4+
5+
.. image:: https://readthedocs.org/projects/pip/badge/
6+
:target: http://pint-pandas.readthedocs.org/
7+
:alt: Documentation
8+
9+
.. image:: https://img.shields.io/pypi/l/pint-pandas.svg
10+
:target: https://pypi.python.org/pypi/pint-pandas
11+
:alt: License
12+
13+
.. image:: https://img.shields.io/pypi/pyversions/pint-pandas.svg
14+
:target: https://pypi.python.org/pypi/pint-pandas
15+
:alt: Python Versions
16+
17+
.. image:: https://travis-ci.org/hgrecco/pint-pandas.svg?branch=master
18+
:target: https://travis-ci.org/hgrecco/pint-pandas
19+
:alt: CI
20+
21+
.. image:: https://coveralls.io/repos/github/hgrecco/pint-pandas/badge.svg?branch=master
22+
:target: https://coveralls.io/github/hgrecco/pint-pandas?branch=master
23+
:alt: Coverage
24+
25+
.. image:: https://readthedocs.org/projects/pint-pandas/badge/
26+
:target: http://pint-pandas.readthedocs.org/
27+
:alt: Docs
28+
29+

CHANGES

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
Pint-pandas Changelog
2-
==============
1+
pint-pandas Changelog
2+
=====================
33

44
0.1 (unreleased)
55
----------------

MANIFEST.in

+7-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
1-
include LICENSE
1+
include AUTHORS CHANGES LICENSE README.rst BADGES.rst version.txt readthedocs.yml .coveragerc
2+
recursive-include pint_pandas *
23
recursive-include notebooks *.csv
34
recursive-include notebooks *.ipynb
4-
recursive-include pintpandas *.csv
5+
recursive-include pint_pandas *.csv
6+
prune docs/_build
7+
prune docs/_themes/.git
8+
exclude .editorconfig bors.toml pull_request_template.md requirements_docs.txt version.py
9+
global-exclude *.pyc *~ .DS_Store *__pycache__* *.pyo .travis-exclude.yml

pint_pandas/__init__.py

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
from .pint_array import PintArray, PintType
2+
3+
try:
4+
from importlib.metadata import version
5+
except ImportError:
6+
# Backport for Python < 3.8
7+
from importlib_metadata import version
8+
9+
try: # pragma: no cover
10+
__version__ = version("pint-pandas")
11+
except Exception: # pragma: no cover
12+
# we seem to have a local copy not installed without setuptools
13+
# so the reported version will be unknown
14+
__version__ = "unknown"
15+
16+
__all__ = ["PintArray", "PintType", "__version__"]
File renamed without changes.
File renamed without changes.
File renamed without changes.

pintpandas/testsuite/test_pandas_interface.py pint_pandas/testsuite/test_pandas_interface.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import numpy as np
55
import pandas as pd
66
import pint
7-
import pintpandas as ppi
7+
import pint_pandas as ppi
88
import pytest
99
from pandas.core import ops
1010
from pandas.tests.extension import base
@@ -18,7 +18,7 @@
1818
)
1919
from pint.errors import DimensionalityError
2020
from pint.testsuite.test_quantity import QuantityTestCase
21-
from pintpandas import PintArray
21+
from pint_pandas import PintArray
2222

2323
ureg = pint.UnitRegistry()
2424

pintpandas/__init__.py

-3
This file was deleted.

pyproject.toml

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
[build-system]
2+
requires = ["setuptools>=41", "wheel", "setuptools_scm[toml]>=3.4.3"]
3+
build-backend = "setuptools.build_meta"
4+
5+
[tool.setuptools_scm]

setup.cfg

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[metadata]
2-
name = pint-pandas
2+
name = Pint-Pandas
33
author = Hernan E. Grecco
44
author_email = [email protected]
55
license = BSD
@@ -23,7 +23,7 @@ classifiers =
2323
Programming Language :: Python :: 3.8
2424

2525
[options]
26-
packages = pintpandas
26+
packages = pint_pandas
2727
zip_safe = True
2828
include_package_data = True
2929
python_requires = >=3.6

setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
from setuptools import setup
33

44
if __name__ == "__main__":
5-
setup()
5+
setup(use_scm_version=True)

version.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
# flake8: noqa
33

44
# fmt: off
5-
__version__ = '0.1.dev0'
5+
__version__ = '0.1'
66
# fmt: on

0 commit comments

Comments
 (0)