summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
...
| * | Rewrite the descriptor generator.Isis Lovecruft2013-10-26
| | | | | | | | | | | | | | | | | | | | | * ADD better descriptor generator, it makes descriptors according to dir-spec.txt now. They are even signed with OpenSSL generated RSA keys, and have all the embedded document hashes and fingerprints of the correct keys used for signing and everything.
| * | Add RUN_IN_DIR as a commandline option and cleanup the option explanations.Isis Lovecruft2013-10-26
| | |
| * | Pass the entire set of main options to the runner.Isis Lovecruft2013-10-26
| | |
| * | Add commands for CouchDB testing to .travis.yml (innactive for now).Isis Lovecruft2013-10-26
| | |
| * | Switch Travis-CI IRC notification to notices.Isis Lovecruft2013-10-26
| | |
| * | Remove unnecessary requirements, make others explicitly versioned.Isis Lovecruft2013-10-26
| | |
| * | Refactor bridgedb.Main.run() and bridgedb.Main._reloadFn().Isis Lovecruft2013-10-22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The main entry point and server reload function are refactored to recieve the parsed options from the commandline script, scripts/bridgedb. It is necessary to pass *args to `_reloadFn()` (as well as its original stubbed lambda function), because the arguments are technically unknown to the scope of the `reload()` function embedded in `bridgedb.Main.startup()` when it is evaluated at compile time (they are not known until later when `bridgedb.Main.run()` is called via scripts/bridgedb).
| * | Fix python2.6 syntax errors.Isis Lovecruft2013-10-22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | These were the result of using indexless format string syntax, which was introduced in Python-3.1 (and then it was backported to some versions of 2.7, but not 2.6, apparently). * FIXES a couple print statement syntax in lib/bridgedb/Tests.py causing test failure. The failing test was: - testDistWithFilterBlockedCountriesAdvanced (bridgedb.Tests.IPBridgeDistTests)
| * | Add script for killing the the server after N seconds; avoid running forever ↵Isis Lovecruft2013-10-22
| | | | | | | | | | | | in CI.
| * | Add scripts/make-ssl-cert and start using it in .travis.yml.Isis Lovecruft2013-10-22
| | | | | | | | | | | | | | | | | | * ADD script for generating a self-signed SSL certificate for testing. * CHANGE dependency installs in .travis.yml to ignore suggestions and recommendations.
| * | Refactor scripts/bridgedb to use the new options and runner.Isis Lovecruft2013-10-22
| | |
| * | Add runner module and descriptor generator.Isis Lovecruft2013-10-22
| | | | | | | | | | | | | | | | | | | | | * ADD lib/bridgedb/runner.py for running trial/unittest tests. * ADD scripts/gen_bridge_descriptors. * Fix lib/bridgedb/opt.py by coercing a commandline parameter to a string; it's sometimes None or an int.
| * | Add opt module with updated options parsers.Isis Lovecruft2013-10-22
| | |
| * | Run unittests before changing to the runtime tests directory.Isis Lovecruft2013-10-22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | And Don't run trial-based tests until #9199's tests are merged. (cherry picked from commit 31cff62c026a94edd114a5adff2848899569c5f6) Created a new branch in order to drop commit 826f872e075a639250d565a8d93b1c405256f82d. Signed-off-by: Isis Lovecruft <isis@torproject.org>
| * | Fix three failing unittests in lib/bridgedb/Tests.py.Isis Lovecruft2013-10-22
|/ / | | | | | | | | | | | | | | | | | | | | | | | | Three unittests were failing in lib/bridgedb/Tests.py due to changes made for users). They were: - testDistWithFilterBoth (bridgedb.Tests.IPBridgeDistTests) - testDistWithFilterIP4 (bridgedb.Tests.IPBridgeDistTests) - testDistWithFilterIP6 (bridgedb.Tests.IPBridgeDistTests) These were failing due to chopping the first 7 bytes off the the returned config lines, because they expected to see the "bridge " prefix and it's not there anymore.
* | Update dependencies and install instructions in .travis.yml and README.Isis Lovecruft2013-10-15
| |
* | Add .travis.yml file.Isis Lovecruft2013-10-15
| |
* | It's not 2009 anymore…Isis Lovecruft2013-10-15
| | | | | | | | (cherry picked from commit e2a7f9319310a3c23a0c110963071cb1f4592c76)
* | Add Makefile directives for pylint/pyflakes/pep8 code checks.Isis Lovecruft2013-10-15
| | | | | | | | | | * ADD .pylintrc to tweak pylint a bit; otherwise it warns about some rather ridiculous things.
* | Add doc/HACKING.md and move the "Maintenance Notes" from README to it.Isis Lovecruft2013-10-15
| |
* | Merge branch 'hotfix/9959-pas-danglais_install-data' into developIsis Lovecruft2013-10-15
|\ \
| * | Change 'install' and 'force_install' Makefile directive to be verbose again.Isis Lovecruft2013-10-15
| | |
| * | Add a download_url to setuptools.setup(). While we're at it, why not?Isis Lovecruft2013-10-15
| | |
| * | Some pep8ification on setup.py.Isis Lovecruft2013-10-15
| | |
| * | Remove installData class and all distutils references from setup.py.Isis Lovecruft2013-10-15
| | | | | | | | | | | | | | | * FIXES all the distutils hellspawn bugs arising from the disturbed grave of distribute. Everything is purely setuptools now.
| * | Remove subprocess import from setup.py; it wasn't used anywhere.Isis Lovecruft2013-10-15
| | |
| * | Refactor message_extractors in setuptools.setup() and add a notetoself.Isis Lovecruft2013-10-15
| | | | | | | | | | | | | | | | | | | | | | | | | | | * CHANGE ``message_extractors`` to use the ``pkgpath`` variable. The less places in the code with arbitrary hardcoded paths which may change at some point, the better. * ADD an XXX note about the glob pattern ``public/**`` in ``message_extractors``.
| * | Fix exclude_package_data param in setuptools.setup().Isis Lovecruft2013-10-15
| | | | | | | | | | | | | | | | | | | | | | | | * CHANGE ``exclude_package_data`` to specify the package explicitly. This seems to fix a bug where .po files were still being installed. * ADD an exclusion for all .pot files. * FIXES a bug where lib/bridgedb/i18n/templates/bridgedb.pot was being installed by setuptools.
| * | Rewrite the package_data param to setuptools.setup() to use get_data_files().Isis Lovecruft2013-10-15
| | |
| * | Refactor get_data_files() function in setup.py.Isis Lovecruft2013-10-15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The ``get_data_files()`` function now takes a boolean ``filesonly`` parameter, if True, it returns a list suitable for the ``package_data`` parameter of ``setuptools.setup()``, otherwise it returns a list which is compatible with ``distutils.command.install_data.install_data.data_files``. We can now remove distutils entirely from setup.py, but I decided to make this function compatible with both distutils and setuptools because Python packaging has been in turmoil for a while now. (Hopefully, it's done, but I'm not holding my breath.) * FIXES a problem with some .mo files not getting installed (if they didn't already have a directory for their LOCALE in build/). * FIXES a bug where all .po files were being installed, even though they were added to the ``exclude_package_data`` parameter of ``setuptools.setup()``. * FIXES (along with commit ef784165002086cbc5b8131edcde815326a63009) a bug where the robots.txt file was not being packaged correctly.
| * | Add get_template_files() function in setup.py for installing web resources.Isis Lovecruft2013-10-15
| | | | | | | | | | | | | | | | | | | | | | | | * ADD ``glob`` dependency to setup.py. * ADD ``get_template_files()`` function to setup.py, which simply globs for filenames which match various directory patterns, in order to obtain files which should be installed for BridgeDB's HTTPS distributor. * FIXES a bug where robots.txt was not being installed as a resource file.
| * | Add a real fileheader and full version string to bridgedb/__init__.py.Isis Lovecruft2013-10-15
| | | | | | | | | | | | Might as well, while we're at it.
| * | Fix several problems with installation of compiled translations files.Isis Lovecruft2013-10-15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * ADD function ``get_supported_langs()`` to setup.py, which determines which completed, compiled translations files are present in our source tree, and stores three things: 1. The LOCALE code for the translation. 2. The path of the directory to install the files to, relative to the current ``sys.prefix``. (``sys.prefix`` is where Python files are going to be installed, and it is set by the OS's interpreter first, and then occaisionally changed according to various factors, like whether or not we are working in a virtualenv, if the package is being installed from a DCVS/egg/tarball/zipfile, if the package is being installed via pip or via a package manager, etc.) 3. A list of files for that LOCALE which should be installed. In our case, this should only ever be one <LOCALE>/LC_MESSAGES/bridgedb.mo file per LOCALE. These three things allow us to tell both setuptools (and the underlying distutils mechanisms) how/where to install everything. The next thing that ``get_supported_langs()`` does is take the list of collected LOCALEs which are to be installed, and rewrite a line in the following new module: * ADD a new module, lib/bridgedb/_langs.py, which has one variable, ``supported``, which is a list of two-letter country codes of languages installed. When "python setup.py install" is run (or any setup.py command, for that matter) the ``supported`` variable in lib/bridgedb/_langs.py is rewritten to be the current list of languages for which we have completed, compiled translation files. * ADD function ``get_langs()`` to lib/bridgedb/_langs.py. This simply fetches the current value for ``supported``. * ADD a package attribute, ``bridgedb.__langs__``, which uses ``get_langs()`` to store, in the installed version of BridgeDB, the list of supported languages which were also installed. :) * ADD an entry for ``lib/bridgedb/_langs.py`` into .gitignore, so that a locally rewritten file is never committed.
| * | Add relative install/source dir paths for templates and resources to setup.py.Isis Lovecruft2013-10-15
|/ /
* | Merge branch 'hotfix/3573-robots-txt_add-web-resource' into developIsis Lovecruft2013-10-14
|\ \
| * | Add a Resource.putChild() for the robots.txt file so it gets served.Isis Lovecruft2013-10-14
|/ /
* | Merge branch 'hotfix/9937-desc-gen_fix-tabs' into developIsis Lovecruft2013-10-14
|\ \
| * | Fix whitespace in gen_bridge_descriptors script.Isis Lovecruft2013-10-14
| | | | | | | | | | | | | | | * REMOVE one EOL whitespace, a blankline with extra whitespace. * FIX a tab before a space.
| * | Run gen_bridge_descriptors in a non-privileged env.Isis Lovecruft2013-10-14
|/ /
* | Add translation catalog compilation commands to install Makefile directives.Isis Lovecruft2013-10-14
| | | | | | | | | | * CHANGE Makefile directives 'install' and 'force-install' to recompile the completed translations before actually installing the package.
* | Merge branch 'fix/3573-robots-txt' into developIsis Lovecruft2013-10-14
|\ \
| * | Add a text file for robots.Isis Lovecruft2013-10-13
|/ /
* | Merge branch 'feature/9959-pas-danglais' into developIsis Lovecruft2013-10-13
|\ \
| * | Update completed translation files after running update_catalog.Isis Lovecruft2013-10-11
| | |
| * | For some reason, English is now considered a translation.Isis Lovecruft2013-10-11
| | | | | | | | | | | | | | | | | | | | | It seems that BridgeDB won't answer a request until it knows what language to answer in. If English is the first language, and there aren't English translations in the i18n/ directory, it jumps to the next non-English language. Don't ask.
| * | Add script for automatically pulling in and compiling translation updates.Isis Lovecruft2013-10-11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * ADD maint/get-completed-translations script for pulling in the 'bridgedb_completed' branch from the translations repo. At the end of the script there is the option to automatically run "python setup.py compile_catalog" to recompile the newly merged translations; this option times out after 15 seconds, so this is safe to run in an automated environment. * ADD "make translations" command to the Makefile, this will run the maint/get-completed-translations script.
| * | Remove old compiled translations.Isis Lovecruft2013-10-11
| | | | | | | | | | | | This shouldn't have been committed anyway.
| * | Add completed kn/…/.po translation file from translations repo.Isis Lovecruft2013-10-11
| | |
| * | Add completed hu/…/.po translation file from translations repo.Isis Lovecruft2013-10-11
| | |
| * | Update completed pt/…/.po translation file from translations repo.Isis Lovecruft2013-10-11
| | |