Commit graph

66 commits

Author SHA1 Message Date
Donald Stufft
c62a78c015 Move the cryptography package into a src/ subdirectory
Due to differences in how py.test determines which module to ``import``
the test suite actually runs against the cryptography which is in the
*current* directory instead of the cryptography which is installed. The
problem essentially boils down to when there is a tests/__init__.py then
py.test adds the current directory to the front of the sys.path, causing
it to take precedence over the installed location.

This means that running the tests relies on the implicit compile
that CFFI does instead of testing against what people will actually
be runnning, which is the module compiled by setup.py.
2014-11-13 07:56:31 -05:00
Donald Stufft
d1b70f31e7 Build FFI instance when class is created, load library when instantiated 2014-11-07 21:11:25 -05:00
Alex Gaynor
abe8bc966c Update the license in setup.py 2014-10-31 19:28:57 -07:00
Peter Odding
97f45302f1 Fix PEP-8 violations 2014-09-29 11:44:32 -05:00
Peter Odding
6c1e9ef571 Fix for keywords_with_side_effects() (compatibility with pip metadata discovery)
Fixes a bug in 9e34c14b344f49d0721edc79d14ea5fc9c067d07 as described in
https://github.com/pyca/cryptography/pull/1257#issuecomment-48855243
2014-09-29 11:44:32 -05:00
Peter Odding
c9861f9bd4 Simplify dummy commands (fix inheritance, remove finalize_options()) 2014-09-29 11:44:32 -05:00
Peter Odding
e9144566b6 Bullet proof (?) detection of arguments that don't need setup_requires 2014-09-29 11:44:31 -05:00
Peter Odding
dcce080527 Bug fix for implementation of dummy commands
Pointed out by Jenkins:
https://jenkins.cryptography.io/job/cryptography-pr-experimental/2163/
2014-09-29 11:44:31 -05:00
Peter Odding
3ae89a59ad Replace commands that depend on setup_requires with no-op that raises error 2014-09-29 11:44:31 -05:00
Peter Odding
63ce5df833 PEP-8 fixes pointed out by Travis CI 2014-09-29 11:44:31 -05:00
Peter Odding
e327cf1f4e Change nested dictionary literal to match house style 2014-09-29 11:44:31 -05:00
Peter Odding
51ec05fc24 Make sys.argv an argument of keywords_with_side_effects() 2014-09-29 11:44:30 -05:00
Peter Odding
c9b83f7bee Work around for side effects in setup.py script
Disables setup_requires and related magic for setup.py commands
clean, egg_info and sdist and the options --version and --help.

See also https://github.com/pyca/cryptography/issues/1253
2014-09-29 11:44:00 -05:00
Alex Gaynor
e23dd3ac54 Fix? 2014-08-11 13:51:54 -07:00
Terry Chia
361545d874 Removed need for Binding entry_point 2014-07-28 12:06:54 +08:00
Terry Chia
da5dca8a92 Added entry_points. 2014-07-27 12:27:52 +08:00
Alex Gaynor
d9f9b75ad6 Check for errors when invoking the vectors setup.py 2014-07-11 10:18:24 -07:00
Paul Kehrer
d3e3df9308 use pyasn1 for creating the dss-sig-value structure 2014-04-30 11:13:17 -05:00
Alex Stapleton
707b0085cb Fix pep8 errors for latest import linter 2014-04-20 22:24:41 +01:00
Alex Stapleton
4b610cc441 Import lint error 2014-04-20 22:05:37 +01:00
Sascha Peilicke
c549205000 Add custom 'install' command class
CFFIBuild adds ext_modules late in the configuration phase. However,
distutils default 'install' command also parses setup.py and thus misses
that cffi contains several extension modules rather than being pure. As
a consequence, add a CFFIInstall with a proper finalize_options method
and use it.
2014-04-01 15:19:18 +02:00
Paul Kehrer
7ad18bca37 add some comments to note the duplication between setup.py and tox.ini 2014-03-28 08:50:53 -05:00
Alex Stapleton
a39a319b09 Move cryptography.vectors to cryptography_vectors
All vectors are now stored in the subpackage in the vectors/ folder.

This package is automatically installed by setup.py test and will also
be uploaded with a matching version number by the PyPI upload task.
2014-03-24 09:46:47 +00:00
Alex Stapleton
0bd20e264c cryptography.vectors 2014-03-22 16:23:46 +00:00
Paul Kehrer
8443a92f9f revert one import order change 2014-03-19 13:09:40 -04:00
Paul Kehrer
afc1ccdcc8 import order fixes for future automated checking 2014-03-19 11:49:32 -04:00
Alex Gaynor
7f8b277661 We support 3.4 2014-03-17 10:22:41 -07:00
Alex Gaynor
c37feed731 Added future imports and licenses that are missing 2014-03-08 08:32:56 -08:00
Alex Gaynor
6858cd42e0 The worst. 2014-03-04 15:33:13 -08:00
Alex Gaynor
acac6a6ed5 Follow the rules 2014-03-04 15:24:03 -08:00
koobs
066718022e And again. Remove whitespace (pep8) 2014-02-25 19:35:48 +11:00
koobs
23690dd8f8 pep8: Add import (sys) and newline 2014-02-25 19:35:48 +11:00
koobs
92a4cdbd92 Add new lines (pep8) and use full sentences 2014-02-25 19:35:48 +11:00
koobs
ff0dd1e000 Integrate py.test enabling python setup.py test
Integrate py.test according to: https://pytest.org/latest/goodpractises.html#integration-with-setuptools-test-commands

Enables use of standard python setup.py test command. 

Very handy for OS packagers & porters for QA, in this case the FreeBSD Port for cryptography which just landed.
2014-02-25 19:35:48 +11:00
Paul Kehrer
5b6ce2a63a some style fixes suggested by pep8-naming 2014-02-24 20:16:10 -06:00
Alex Gaynor
1e4811a55f Just drop the classifier entirely 2014-02-07 10:33:27 -08:00
Alex Gaynor
1b3899f94b We're now past pre-alpha 2014-02-07 10:31:35 -08:00
Alex Gaynor
defc7f0534 On OS X at build time compile the CC bindings 2014-01-19 23:44:31 -06:00
Paul Kehrer
7fcaa3715f drop to >= 0.8 to make pypy happy 2014-01-10 23:39:58 -06:00
Paul Kehrer
a8dcf8428f require cffi >= 0.8.1 2014-01-10 23:34:20 -06:00
Alex Gaynor
5e5316de9c This is dangerous 2014-01-07 12:27:08 -08:00
Alex Gaynor
ffa8b4d5fe flake8 2014-01-06 11:19:11 -08:00
Alex Gaynor
50f233efe4 Check to see if a binding is available before trying to install it 2014-01-06 11:10:40 -08:00
Alex Gaynor
4969751fde Explanatory comment 2014-01-03 15:08:45 -08:00
Alex Gaynor
327742c8e6 Merge branch 'master' into setup-install-extension
Conflicts:
	setup.py
2014-01-03 15:03:17 -08:00
Alex Gaynor
7630d6c50b Also use an absolute path for the about file 2014-01-03 07:34:43 -08:00
Alex Gaynor
f51f2c1c5f Include a long description in our setup.py 2014-01-03 07:33:01 -08:00
Alex Gaynor
91f119e758 six is now required at build time 2014-01-02 13:12:59 -08:00
Alex Gaynor
9a00f0539d All the necessary things for setup.py to build cffi stuff 2014-01-02 13:09:34 -08:00
Paul Kehrer
b59377d9a3 remove unneeded import...whoops 2013-10-21 22:21:22 -05:00