briancurtin / deprecation

A library to handle automated deprecations
Apache License 2.0
88 stars 31 forks source link

Move sample.py out of the distribution #29

Closed briancurtin closed 6 years ago

briancurtin commented 6 years ago

sample.py can live inside the docs directory and work fine without being installed. This may require a change on the ReadTheDocs configuration to point it at the included docs-requirements.txt file, though I won't know that until this gets merged and built on RTD. Including it now in case it's needed.

briancurtin commented 6 years ago

@eli-schwartz, this probably solves the sample problem, right?

codecov-io commented 6 years ago

Codecov Report

:exclamation: No coverage uploaded for pull request base (master@3d08098). Click here to learn what that means. The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##             master    #29   +/-   ##
=======================================
  Coverage          ?   100%           
=======================================
  Files             ?      1           
  Lines             ?     83           
  Branches          ?     16           
=======================================
  Hits              ?     83           
  Misses            ?      0           
  Partials          ?      0

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 3d08098...579fa9d. Read the comment docs.

briancurtin commented 6 years ago

FWIW, this works locally in that the sample is no longer included in the build, and the docs properly include the sample, so I think it's probably the right move.

eli-schwartz commented 6 years ago

That would solve the sample problem, sure.

Does readthedocs have some way to test the documentation build without pushing a release?

briancurtin commented 6 years ago

Not currently, but there’s recent activity on https://github.com/rtfd/readthedocs.org/issues/1340 to suggest that may be possible in the future. For now, once I merge this I’ll keep an eye on the RTD build and if it needs a follow up change I’ll do that separately.

eli-schwartz commented 6 years ago

Actually https://docs.readthedocs.io/en/latest/features.html#version-control-support-matrix implies you should be able to manually enable RTD for a specific branch, as long as the branch is in the primary repository (which this, of course, is).

Could test the docs build, and then test removing install_requires, before merging to master if I read this right.

briancurtin commented 6 years ago

https://deprecation.readthedocs.io/en/fix_sample_installation/ shows this works.

What's the install_requires change you mention? I'm guessing you mean to take unittest2 out of it?

eli-schwartz commented 6 years ago

Yes.

briancurtin commented 6 years ago

This is now released as 2.0.4: https://pypi.org/project/deprecation/2.0.4/

eli-schwartz commented 6 years ago

Thanks!

eli-schwartz commented 6 years ago

BTW have you pushed the git tag for this release yet.

briancurtin commented 6 years ago

Oops, forgot to push. It's there now.