1
0
mirror of https://github.com/certbot/certbot.git synced 2026-01-26 07:41:33 +03:00
Commit Graph

101 Commits

Author SHA1 Message Date
ohemorange
4abd81e218 Refactor certbot/ and certbot/tests/ to use the same structure as the other packages (#7544)
Summary of changes in this PR:
- Refactor files involved in the `certbot` module to be of a similar structure to every other package; that is, inside a directory inside the main repo root (see below).
- Make repo root README symlink to `certbot` README.
- Pull tests outside of the distributed module.
- Make `certbot/tests` not be a module so that `certbot` isn't added to Python's path for module discovery.
- Remove `--pyargs` from test calls, and make sure to call tests from repo root since without `--pyargs`, `pytest` takes directory names rather than package names as arguments.
- Replace mentions of `.` with `certbot` when referring to packages to install, usually editably.
- Clean up some unused code around executing tests in a different directory.
- Create public shim around main and make that the entry point.

New directory structure summary:
```
repo root ("certbot", probably, but for clarity all files I mention are relative to here)
├── certbot
│   ├── setup.py
│   ├── certbot
│   │   ├── __init__.py
│   │   ├── achallenges.py
│   │   ├── _internal
│   │   │   ├── __init__.py
│   │   │   ├── account.py
│   │   │   ├── ...
│   │   ├── ...
│   ├── tests
│   │   ├── account_test.py
│   │   ├── display
│   │   │   ├── __init__.py
│   │   │   ├── ...
│   │   ├── ... # note no __init__.py at this level
│   ├── ...
├── acme
│   ├── ...
├── certbot-apache
│   ├── ...
├── ...
```

* refactor certbot/ and certbot/tests/ to use the same structure as the other packages

* git grep -lE "\-e(\s+)\." | xargs sed -i -E "s/\-e(\s+)\./-e certbot/g"

* git grep -lE "\.\[dev\]" | xargs sed -i -E "s/\.\[dev\]/certbot[dev]/g"

* git grep -lE "\.\[dev3\]" | xargs sed -i -E "s/\.\[dev3\]/certbot[dev3]/g"

* Remove replacement of certbot into . in install_and_test.py

* copy license back out to main folder

* remove linter_plugin.py and CONTRIBUTING.md from certbot/MANIFEST.in because these files are not under certbot/

* Move README back into main folder, and make the version inside certbot/ a symlink

* symlink certbot READMEs the other way around

* move testdata into the public api certbot zone

* update source_paths in tox.ini to certbot/certbot to find the right subfolder for tests

* certbot version has been bumped down a directory level

* make certbot tests directory not a package and import sibling as module

* Remove unused script cruft

* change . to certbot in test_sdists

* remove outdated comment referencing a command that doesn't work

* Install instructions should reference an existing file

* update file paths in Dockerfile

* some package named in tox.ini were manually specified, change those to certbot

* new directory format doesn't work easily with pyargs according to http://doc.pytest.org/en/latest/goodpractices.html#tests-as-part-of-application-code

* remove other instance of pyargs

* fix up some references in _release.sh by searching for ' . ' and manual check

* another stray . in tox.ini

* fix paths in tools/_release.sh

* Remove final --pyargs call, and now-unnecessary call to modules instead of local files, since that's fixed by certbot's code being one layer deeper

* Create public shim around main and make that the entry point

* without pyargs, tests cannot be run from an empty directory

* Remove cruft for running certbot directly from main

* Have main shim take real arg

* add docs/api file for main, and fix up main comment

* Update certbot/docs/install.rst

Co-Authored-By: Brad Warren <bmw@users.noreply.github.com>

* Fix comments in readthedocs requirements files to refer to current package

* Update .[docs] reference in contributing.rst

* Move plugins tests to certbot tests directory

* add certbot tests to MANIFEST.in so packagers can run python setup.py test

* move examples directory inside certbot/

* Move CHANGELOG into certbot, and create a top-level symlink

* Remove unused sys and logging from main shim

* nginx http01 test no longer relies on certbot plugins common test
2019-11-25 14:28:05 -08:00
schoen
fb83a1ac09 Merge pull request #6963 from certbot/coc
Adding links to EFF's Public Projects Code of Conduct
2019-04-24 12:17:22 -07:00
Brad Warren
a817e4f0ec There's no need to use certbot-auto here. (#6970)
I came across this when looking through our docs for other references to certbot-auto.

For the README changes, I deleted a bunch of duplicated and outdated instructions in favor of pointing people to https://certbot.eff.org.
2019-04-22 09:14:20 -07:00
Jeremy Gillula
24eb299a9b Added a link to the EFF Public Projects Code of Conduct to the readme. 2019-04-16 16:27:22 -07:00
Brad Warren
e34e0d9f1a Change build status links to travis-ci.com. (#6656) 2019-01-14 14:06:52 -08:00
Daniel McCarney
0dab41ee13 docs: remove mentions of #letsencrypt on Freenode. (#6419)
* docs: remove mentions of #letsencrypt on Freenode.

* docs: remove unused Freenode link
2018-10-18 13:12:47 -07:00
schoen
92501eaf8f Note about running on web server, not PC (#6422) 2018-10-17 14:08:59 -07:00
Brad Warren
f2bc876b6e switch to codecov (#6220) 2018-07-31 15:56:21 -07:00
Noah Swartz
39696456db Link to changelog from readme (#5069)
fixes #3420
2017-09-01 07:56:49 -07:00
Jacob Hoffman-Andrews
76ecb7035f Remove "alpha" and "beta" qualifiers from docs. (#4808) 2017-06-09 08:35:04 -07:00
Noah Swartz
1d876aba23 update README (#4623) 2017-05-08 10:54:19 -07:00
Noah Swartz
6d0591f0db Merge pull request #4457 from Robotic-Brain/patch-2
Fixing Typo in README.rst (issues -> issued)
2017-04-13 15:25:22 -07:00
Noah Swartz
71decfb773 Merge pull request #4456 from Robotic-Brain/patch-1
Fixing Typo in Readme.rst (identify -> identity)
2017-04-13 15:24:55 -07:00
Zero King
5259901d04 Fix link in README.rst 2017-04-06 11:02:00 +00:00
Robotic-Brain
345e77efcf Fixing Typo in README.rst (issues -> issued) 2017-04-04 00:42:33 +02:00
Robotic-Brain
b92b37d9fe Fixing Typo in Readme.rst 2017-04-04 00:35:11 +02:00
Jacob Hoffman-Andrews
b23a1377e0 Clarify documentation for low-memory machines. (#4305)
* Clarify documentation for low-memory machines.

* Restore py26/py27 requirement.
2017-03-17 13:17:08 -07:00
Jacob Hoffman-Andrews
6a8113fa87 Remove reference to #certbot on OFTC
The #letsencrypt channel on Freenode is much more active, and is the defacto place for questions about Certbot. Users posting questions on #certbot on OFTC are not getting prompt answers.
2017-02-16 10:24:48 -08:00
Brad Warren
2564fb785b I restructured Installation and Using a bit (#3725)
* Fixing a weird out-of-place paragraph in the Getting Certbot section

* De-duping and clarifying installation information, separating it from Using.

* Responding to feedback at https://github.com/certbot/certbot/pull/3675#pullrequestreview-5757007
2016-11-01 14:25:26 -07:00
Peter Eckersley
7f172859f5 Nginx docs in README (#3606)
* Update plugins docs in README

 - nginx is now part of certbot-auto
 - apache is now cross-platform

* Alpha / beta

* RST, not markdown
2016-10-12 17:02:39 -07:00
Brad Warren
85bd78a81b cleanup links 2016-08-24 14:34:39 -07:00
Brad Warren
ff6d1f9fc9 Add tags around link text 2016-08-24 14:32:47 -07:00
Jeroen Pluimers
5500004dd6 Fix the links for #3416 and align README.rst & docs/resources.rst
Fix the links for #3416 and align content of in README.rst and docs/resources.rst so it's easier to later de-dupe

(I've not done this now as in README.rst does too much tag: fiddling and I'm not sure how that will work out if the fiddling is not aware of .. include::.
2016-08-18 10:38:47 +02:00
Benjamin Piouffle
9ecca9bdf0 Update README.rst
Link to https://certbot.eff.org/ was broken
2016-08-17 01:12:15 +02:00
Peter
3036419975 Fixing merge conflicts. 2016-08-11 15:14:08 -07:00
Brad Warren
04fd293ec2 add underscore to broken developer guide link 2016-07-29 18:56:03 -07:00
Peter Eckersley
fbf8a27157 Slight tweaks 2016-07-28 19:05:08 -07:00
Brad Warren
eeb0948a96 point devs specifically at developer guide 2016-07-28 17:14:04 -07:00
Brad Warren
07eaa4a61b Clarify need for root privileges 2016-07-28 17:11:07 -07:00
Peter
9ebda1879c Restructured installation docs. Mainly put everything together in a sensible order in using.rst and pointed to it from README.rst. 2016-07-28 15:43:57 -07:00
Brad Warren
9fb2358507 Move text back into README 2016-07-20 14:59:42 -07:00
Brad Warren
8be5849a9e Flip README and intro 2016-07-15 09:35:42 -07:00
Brad Warren
9fe6836c01 remove coupling between README and docs introduction 2016-07-14 15:05:41 -07:00
Peter Eckersley
f16104e3cb Lots of doc cleanups 2016-05-13 12:22:55 -07:00
Brad Warren
5637c5857e Merge remote-tracking branch 'origin/new-dl' into candidate-0.6.0 2016-05-11 17:24:32 -07:00
Peter Eckersley
ba7688ba99 Avoid certbot-auto.asc.1 2016-05-11 15:57:38 -07:00
Peter Eckersley
407ebad36e Support openssl and gpg signatures in parallel 2016-05-11 15:56:10 -07:00
Peter Eckersley
37efe30675 Better explanation 2016-05-09 19:31:29 -07:00
Peter Eckersley
675f2e5413 Put the signature instructions in a hint box 2016-05-09 19:29:08 -07:00
Peter Eckersley
8394e5eb64 Draft of new installation instructions 2016-05-09 19:29:08 -07:00
Noah Swartz
e04e9286f6 fix merge 2016-05-09 12:35:10 -07:00
Noah Swartz
3c413c28b8 fix grammar 2016-05-09 12:31:39 -07:00
Peter Eckersley
785010fe50 Welcome to Certbot! 2016-05-06 12:45:51 -07:00
Jeremy Gillula
fbbbb5b516 Turns out the public beta is over, but still no Python 3.0 support. We over-promised! 2016-05-05 11:31:28 -07:00
Jeremy Gillula
f3172bcfee Changing some "will happen"s to "hopefully will happen"s 2016-05-05 08:55:49 -07:00
Noah Swartz
144f28690b added new docs links 2016-05-04 17:03:52 -07:00
Noah Swartz
e1d9366399 updated README 2016-05-04 10:52:58 -07:00
Noah Swartz
8f6c289e78 incorperate jsha's comments 2016-05-02 13:59:42 -07:00
Noah Swartz
2869f06109 add README.rst 2016-04-21 15:56:23 -07:00
Seth Schoen
46ef3e6374 More explicit 2016-03-22 12:49:39 -07:00