Skip to content

CLN: Replaced package list with find_packages #18632

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 8, 2017

Conversation

WillAyd
Copy link
Member

@WillAyd WillAyd commented Dec 4, 2017

As far as local testing goes, I built source distributions using py27 and py36. Compared to HEAD, the generated distributions were practically identical. Technically they were off by a size of around 100 bytes, but I was getting that same variation when generating clean built distributions just on HEAD alone. Running a recursive diff showed some slight differences in the .so files, but given I saw that variation without making any changes I think it is OK.

@codecov
Copy link

codecov bot commented Dec 4, 2017

Codecov Report

Merging #18632 into master will decrease coverage by 0.01%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #18632      +/-   ##
==========================================
- Coverage   91.59%   91.57%   -0.02%     
==========================================
  Files         155      155              
  Lines       51255    51255              
==========================================
- Hits        46949    46939      -10     
- Misses       4306     4316      +10
Flag Coverage Δ
#multiple 89.44% <ø> (-0.01%) ⬇️
#single 40.67% <ø> (-0.11%) ⬇️
Impacted Files Coverage Δ
pandas/io/gbq.py 25% <0%> (-58.34%) ⬇️
pandas/util/testing.py 81.82% <0%> (-0.2%) ⬇️
pandas/core/frame.py 97.81% <0%> (-0.1%) ⬇️
pandas/core/indexes/datetimes.py 95.68% <0%> (+0.09%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 2c903d5...97654b7. Read the comment docs.

@codecov
Copy link

codecov bot commented Dec 4, 2017

Codecov Report

Merging #18632 into master will increase coverage by <.01%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #18632      +/-   ##
==========================================
+ Coverage   91.57%   91.57%   +<.01%     
==========================================
  Files         153      153              
  Lines       51257    51257              
==========================================
+ Hits        46937    46940       +3     
+ Misses       4320     4317       -3
Flag Coverage Δ
#multiple 89.44% <ø> (+0.02%) ⬆️
#single 40.68% <ø> (-0.11%) ⬇️
Impacted Files Coverage Δ
pandas/io/gbq.py 25% <0%> (-58.34%) ⬇️
pandas/core/frame.py 97.81% <0%> (-0.1%) ⬇️
pandas/core/window.py 96.31% <0%> (ø) ⬆️
pandas/plotting/_converter.py 66.52% <0%> (+1.73%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update a7f6714...04e85f5. Read the comment docs.

@jreback jreback added the Build Library building on various platforms label Dec 4, 2017
@jreback jreback added this to the 0.22.0 milestone Dec 4, 2017
Copy link
Contributor

@jreback jreback left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm. some doc changes.

@@ -262,4 +262,5 @@ Other
- Fixed a bug where creating a Series from an array that contains both tz-naive and tz-aware values will result in a Series whose dtype is tz-aware instead of object (:issue:`16406`)
- Fixed construction of a :class:`Series` from a ``dict`` containing ``NaN`` as key (:issue:`18480`)
- Adding a ``Period`` object to a ``datetime`` or ``Timestamp`` object will now correctly raise a ``TypeError`` (:issue:`17983`)
- Refactored ``setup.py`` to use ``find_packages`` instead of explicitly listing out all subpackages (:issue:`18535`)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you move to the Other API changes (where we put cython); you can actually move those 2 to a new sub-section, maybe Development Requirements or something (after Other API changes).

setuptools>=3.3
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is fine as this is a pretty old version. can you add this to the conda recipe as well.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you update this?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What are you looking to have updated?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pandas/conda.recipe/meta.yml

@@ -6,5 +6,5 @@ moto
pytest>=3.1
python-dateutil>=2.5.0
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you update in doc/source/install.rst as well

setup.py Outdated
'pandas.tools',
'pandas.tseries',
],
packages=find_packages(include=['pandas', 'pandas.*']),
package_data={'pandas.tests': ['data/*.csv'],
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think there is also a utility to find various package data as well?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Below is what I could find in the setuptools documentation on options to include package data. I went with the second suggestion and just included a wildcard entry for all of the extensions currently in use.

http://setuptools.readthedocs.io/en/latest/setuptools.html#including-data-files

@WillAyd WillAyd force-pushed the find-pkgs branch 2 times, most recently from 7fc024c to 62d3b49 Compare December 5, 2017 01:03
Copy link
Contributor

@jreback jreback left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

https://travis-ci.org/pandas-dev/pandas/jobs/311618937 is failing. In fact this is the key test as it pip installs and then tests from not-the-build directory, so it tests whether all of the data is correctly included in setup. ping when green.

@WillAyd WillAyd force-pushed the find-pkgs branch 4 times, most recently from cc38505 to 8f9c684 Compare December 7, 2017 23:36
@jreback
Copy link
Contributor

jreback commented Dec 8, 2017

can you rebase this once again.

@WillAyd
Copy link
Member Author

WillAyd commented Dec 8, 2017

The AppVeyor failure is for a plotting test and does not appear to be related to any change made here

@jreback jreback merged commit f7eb4ae into pandas-dev:master Dec 8, 2017
@jreback
Copy link
Contributor

jreback commented Dec 8, 2017

thanks @WillAyd

@WillAyd WillAyd deleted the find-pkgs branch December 12, 2017 15:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Build Library building on various platforms
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Leveraging find_packages in setup.py
2 participants