Commit Graph

75 Commits

Author SHA1 Message Date
Zooko O'Whielacronx
8bfb9a416d setup: setup_require darcsver >= 1.1.2 2008-03-10 19:57:07 -07:00
Zooko O'Whielacronx
f58acd69b4 setup: generate a unique revision number for each build 2008-03-10 19:26:02 -07:00
Zooko O'Whielacronx
348eecd615 setup: require specific versions of dependencies, both at run-time (if pkg_resources is available) and at build-time, and make there be only once place where we specify those versions
Using pkg_resources.require() like this also apparently allows people to install multiple different versions of packages on their system and tahoe (if pkg_resources is available to it) will import the version of the package that it requires.  I haven't tested this feature.
2008-01-22 17:24:33 -07:00
Zooko O'Whielacronx
eaed7a0690 setup: use setuptools (if it is present) at run-time to give a specific error message on startup if a too-old version of a dependency is installed 2008-01-22 17:42:54 -07:00
Zooko O'Whielacronx
84289b2446 setup: update some docs, metadata, and docstrings 2008-01-22 10:22:51 -07:00
Zooko O'Whielacronx
1f2e3fc912 setup: simplify the setup by removing the "tahoe dependencies" fake project
Now we use "./setup.py develop" to ensure that changes to our source code are immediately used without requiring a "make" step.  This simplification will hopefully pave the way for easier py2exe and py2app, solving the "Unit tests test the installed version" bug (#145), and perhaps also #164 and #176.

This patch also conditionalizes the use of setuptools_darcs on the absence of a PKG-INFO file, which is part of fixing #263.
2008-01-22 08:35:38 -07:00
Zooko O'Whielacronx
e07f9c27c2 setup: require setuptools >= v0.6c6 on all platforms
Technically, we could get away with v0.6c5 or v0.6c4 on non-cygwin platforms, but if someone currently doesn't have setuptools >= v0.6c6 installed then our setup process will just use our bundled setuptools v0.6c7 anyway, so it will still work, and this makes the setup.py and the accompanying documentation simpler.
2008-01-10 14:02:13 -07:00
Zooko O'Whielacronx
83b7b64b3a setup: update licensing information in setup.py comments and metadata 2008-01-08 11:45:00 -07:00
Zooko O'Whielacronx
2755f28e76 setup: use darcsver instead of pyutil for darcsver, use setup.py plugin instead of executable for darcsver
This hopefully fixes the deb builders.
2007-12-31 23:28:31 -07:00
Zooko O'Whielacronx
c3a265839c setup: refactor ez_setup.py and setup.py to satisfy the Desert Island scenario, to find and use setuptools egg in-place in misc/dependencies, and make it setup_require pyutil (for darcsver) 2007-12-22 10:44:47 -07:00
Zooko O'Whielacronx
1ac11301a7 setup: finish switching from Tahoe's versions of autoversioning tools to pyutil's versions 2007-12-21 14:42:38 -07:00
Zooko O'Whielacronx
c00ab7c5ea setup: fix scheme ("file:") for download base for boostrapping setuptools 2007-12-20 16:18:14 -07:00
Zooko O'Whielacronx
3028defb7e setup: fix typo in name of download base for bootstrapping setuptools 2007-12-20 16:16:30 -07:00
Zooko O'Whielacronx
6809fa659e setup: fix the name of "misc/dependencies" for bootstrapping setuptools 2007-12-20 16:13:10 -07:00
Zooko O'Whielacronx
d9fea2566c setup: use os.path.join('misc', 'dependencies') instead of "misc/dependencies"
In the hopes that this will make the boostrapping of setuptools from its bundled egg work on Windows.
2007-12-20 16:07:17 -07:00
Brian Warner
dc3d9f28b8 setup.py: arg, another stupid paste error, affecting cygwin 2007-12-10 20:17:34 -07:00
Brian Warner
7a25d2427f setup.py: fix stupid cut-and-paste error 2007-12-10 20:08:38 -07:00
Brian Warner
0618cf792d build-deps: require setuptools 0.6c4 or later, because older ones don't allow foolscap to use os.random at import time 2007-12-10 20:06:59 -07:00
Brian Warner
955bd5383d remove PyCrypto, now we only use pycrypto++ 2007-12-03 18:10:01 -07:00
Zooko O'Whielacronx
97de6a03d2 remove parts of pycrypto that we are no longer going to use: SHA256 and RSA 2007-11-09 18:21:12 -07:00
Zooko O'Whielacronx
f34b8b251a setup: automatically discover files to include in packages
(Because they are python packages or because they are registered under darcs revision control.)
2007-11-09 18:04:19 -07:00
Zooko O'Whielacronx
9a40ef7526 setup: continue running setup.py even if ez_setup.py can't be imported 2007-11-09 14:58:03 -07:00
czooko
2a95a6fe5b doc: emphasize in our "description" field that we are under a Free Software licence 2007-10-15 21:35:09 -07:00
czooko
51125bb2b3 fix the 'license' field of the PyPI db (not the Trove Classifiers that I was changing in recent patches) to describe our licence and link to it
The earlier patches were changing the Trove Classifiers, which is a different thing to this 'license' field.
2007-10-15 20:55:10 -07:00
Zooko O'Whielacronx
965066dba4 comment-out the 'license' field because PyPI rejects upload if you have an invalid value therein
This means that we have no machine-readable licence for now.  I will make the
human-readable licensing.
2007-10-15 20:48:09 -07:00
Zooko O'Whielacronx
41a5e70276 setup: stop claiming that we are under GPL in the "license" field of the PyPI database
Unfortunately, there is no way to claim that we are under a Free Software/Open
Source licence without also claiming to be under a licence that we are not or
claiming to have approval from DFSG or OSI, which we haven't.

Until now, I erred on the side of choosing the licence that is closest to our
from the list (GPL), but that was a bad idea and now I'm erring on the side of
not including a machine-readable licensing claim at all.

Hopefully humans who are interested will quickly find out that we are actually
under a Real Free Software Licence.

But really, this underscores that we need to talk to FSF, edit our licence for
clarity of intent, and submit it to DFSG/OSI.
2007-10-15 19:57:42 -07:00
Zooko O'Whielacronx
7cb41f4eaa setup: setup_requires setuptools_darcs_plugin. Without it the "./setup.py sdist upload" will silently upload the wrong package contents. 2007-10-13 13:38:18 -07:00
Brian Warner
dc573554c8 rename bin/allmydata-tahoe to bin/tahoe. Closes #155. 2007-10-11 03:38:24 -07:00
Zooko O'Whielacronx
84a303515f setup: use ez_setup.py without a "download delay" 2007-10-03 15:14:14 -07:00
Brian Warner
a9bb0814e6 setup.py use sys.executable instead of hard-coded 'python' to run make-version.py 2007-09-24 12:38:59 -07:00
Zooko O'Whielacronx
2ff4f30e64 setup: attempt to invoke make-version.py whenever setup.py is evaluated 2007-09-23 18:43:36 -07:00
Zooko O'Whielacronx
6fbc51568f setup: use the setuptools "console_scripts" feature to get an allmydata-tahoe.exe on Windows 2007-09-21 13:56:27 -07:00
Brian Warner
1f035a8f1f setup.py: factor out dependency stuff, add workaround for nevow-0.6.0-on-dapper problem 2007-09-15 15:05:35 -07:00
Brian Warner
5cc1dbaac9 setup.py: add Nevow to our dependency list 2007-09-15 14:18:07 -07:00
Brian Warner
fb5ec5a899 setup.py: minor reformatting, use explicit file: URLs in dependency-links 2007-09-15 14:05:32 -07:00
Brian Warner
44c7349270 setup.py: require simplejson>=1.4, since we use the indent= argument 2007-09-14 03:24:15 -07:00
Zooko O'Whielacronx
9c272308e2 set the zip_safe flag to False
This means that by default the allmydata-tahoe egg will be a directory with a tree of files instead of a zip file containing files.  I prefer the former because it makes it easier for people to hack into it.
Unfortunately the files therein are still going to be .pyc's instead of .py's, if I understand correctly.  I would prefer for them to be .py's.  See also discussion on the distutils-sig mailing list:

http://mail.python.org/pipermail/distutils-sig/2007-July/007827.html
2007-09-13 15:37:55 -07:00
Zooko O'Whielacronx
ef7340fb77 change setup.py to find dependency tarballs in misc/dependencies 2007-09-13 15:37:27 -07:00
Zooko O'Whielacronx
28ac048ba0 change ez_setup.py to find tarballs in misc/dependencies 2007-09-13 14:51:19 -07:00
Zooko O'Whielacronx
a01ccc54c0 use ez_setup.py to bootstrap setuptools 2007-09-12 18:57:10 -07:00
Brian Warner
7853497787 setup.py: remove nevow dependency: we need it, but easy_install can't install it 2007-09-12 16:55:38 -07:00
Brian Warner
1c27cc3ea8 packaging: move to setuptools 2007-09-12 16:02:53 -07:00
Brian Warner
93554c8072 setup.py: fix move to _version.py 2007-09-12 16:02:23 -07:00
Zooko O'Whielacronx
f4b5fbc418 README: update the wording of the "LICENCE" section to more closely follow FSF recommendations 2007-09-12 11:31:57 -07:00
Brian Warner
0fe1205789 storage: replace sqlite with in-share lease records 2007-09-02 14:47:15 -07:00
Brian Warner
2a63fe8b01 deletion phase3: add a sqlite database to track renew/cancel-lease secrets, implement renew/cancel_lease (but nobody calls them yet). Also, move the shares from BASEDIR/storage/* down to BASEDIR/storage/shares/* 2007-08-27 23:41:40 -07:00
Brian Warner
56e7ecc540 setup.py: oops, I inserted a typo by commenting out the wrong line 2007-08-16 00:56:58 -07:00
Brian Warner
ec1fa9cd5d setup.py: don't install allmydata.Crypto.PublicKey either 2007-08-16 00:54:52 -07:00
Brian Warner
9146924271 setup.py: disable building RSA for now, since it requires GMP. We'll refrain
from adding it to the build-dependencies until we actually want to use RSA.
2007-08-16 00:52:21 -07:00
Brian Warner
6c24848797 copy RSA from PyCrypto into the allmydata/ tree, we'll use it eventually 2007-08-15 17:36:39 -07:00