Skip to content
This repository has been archived by the owner on Jun 10, 2020. It is now read-only.

Setup Travis and correct setup.py #8

Merged
merged 6 commits into from
Feb 18, 2018
Merged

Setup Travis and correct setup.py #8

merged 6 commits into from
Feb 18, 2018

Conversation

alanhdu
Copy link
Contributor

@alanhdu alanhdu commented Feb 18, 2018

This doesn't really take an opinion on #3, but it at least sets up the basic sanity checks that this repo already has.

Copy link
Member

@shoyer shoyer left a comment

Choose a reason for hiding this comment

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

Thanks @alanhdu!

I just enabled Travis-CI for this repository, so if you push another commit it should trigger a build.

setup.py Outdated
@@ -13,6 +13,6 @@
# PEP 561 requires these
install_requires=['numpy~=1.13.0'],
Copy link
Member

Choose a reason for hiding this comment

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

shall we update this to 1.14.0?

@shoyer
Copy link
Member

shoyer commented Feb 18, 2018

Can you also add a Travis-CI link to the README?

[![Build Status](https://travis-ci.org/numpy/numpy_stubs.svg?branch=master)](https://travis-ci.org/numpy/numpy_stubs)

@@ -1,7 +1,7 @@
from setuptools import setup, find_packages

setup(
name='numpy_stubs',
name='numpy-stubs',
Copy link
Member

Choose a reason for hiding this comment

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

I see that PEP 561 changed it's guidelines here. I suppose we should also rename this repository?

Copy link
Contributor

Choose a reason for hiding this comment

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

This name (the distribution name) doesn't impact PEP 561 compliance. The package name is the real decider; when this repo starts using my PEP 561 implementation in mypy, it will need to rename the numpy package to numpy-stubs, and make according changes. Happy to do those changes when it is time.

@shoyer
Copy link
Member

shoyer commented Feb 18, 2018

And we're green!

Thanks helping get thing set up here... I'll go ahead and merge shortly.

@shoyer shoyer merged commit 2f2f9b1 into numpy:master Feb 18, 2018
alanhdu pushed a commit to alanhdu/numpy-stubs that referenced this pull request Feb 18, 2018
* Replace tab in setup.py with spaces

* Add Travis

* Add flake8 config to pass tests

* Use `-` instead of `_`

See python/peps#568

* Add Travis badge to README

* Use numpy 1.14.0
@alanhdu alanhdu deleted the travis branch February 19, 2018 00:18
shoyer pushed a commit that referenced this pull request Feb 19, 2018
* Add some typehints

* Add ctypes typehints

* Add stubs for dtype

* Setup Travis and correct setup.py (#8)

* Replace tab in setup.py with spaces

* Add Travis

* Add flake8 config to pass tests

* Use `-` instead of `_`

See python/peps#568

* Add Travis badge to README

* Use numpy 1.14.0

* Fix some type annotations

* Make attributes read-only properties

* Add metadata property

* Move flags into flagobj

* Add _Shape type alias

* Alphabetize properties
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants